let obj = {
	onShow() {
		let userInfo = uni.getStorageSync('userInfo');
		if (!userInfo) {
			uni.showModal({
				title: '登录提示',
				content: '您尚未登录，需要登录才可以查看',
				success: function(res) {
					if (res.confirm) {
						uni.navigateTo({
							url:'/pages/mine/login/login'
						})
					} else if (res.cancel) {
						// console.log('用户点击取消');
					}
				}
			});
		}
	}
}

export default obj ;